#!/bin/sh

for COMPONENT in $@; do
    echo "Installing CoyMon component '$COMPONENT' ..."
    if [ $COMPONENT == 'base' ]; then
        echo 
    elif [ $COMPONENT == 'ui' ]; then
        svn co ${GOOGLE_BASE}/${COMPONENT}/trunk/CoyMonSkin \
            ${PREFIX}/Products/CoyMonSkin
        svn co ${GOOGLE_BASE}/${COMPONENT}/trunk/CoyMonNetHelp \
            ${PREFIX}/Products/CoyMonHelp
        svn co ${GOOGLE_BASE}/${COMPONENT}/trunk/CoyMonNetHelpFolder \
            ${PREFIX}/Products/CoyMonHelpFolder
    elif [ $COMPONENT == 'netflow-mgmt' ]; then
        svn co ${GOOGLE_BASE}/${COMPONENT}/trunk/CoyMonNetFlow \
            ${PREFIX}/Products/CoyMonNetFlow
    fi
done
